<%--
  Created by IntelliJ IDEA.
  User: 10732
  Date: 26/2/2022
  Time: 下午 1:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市账单管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/public.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/style.css"/>
</head>
<body>
<!--头部-->
<%@ include file="common/publicTop.jsp" %>
<!--时间-->
<section class="publicTime">
    <span id="time">2015年1月1日 11:11  星期一</span>
    <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
</section>
<!--主体内容-->
<section class="publicMian ">
    <%@ include file="common/publicLeft.jsp" %>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户信息查看页面</span>
        </div>
        <div class="providerView">
            <p><strong>用户编号：</strong><span>${user.userCode}</span></p>
            <p><strong>用户名称：</strong><span>${user.userName}</span></p>
            <p><strong>用户性别：</strong><span>${user.gender==1?'女':'男'}</span></p>
            <p><strong>出生日期：</strong><span><fmt:formatDate value="${user.birthday}" pattern="yyyy年MM月dd日" /></span></p>
            <p><strong>用户电话：</strong><span>${user.phone}</span></p>
            <p><strong>用户地址：</strong><span>${user.address}</span></p>
            <p><strong>用户类别：</strong><span>${user.role.roleName}</span></p>

            <p>
                <strong>其他地址：</strong>
            </p>
            <p>
                <c:forEach items="${user.addressList}" var="address" varStatus="status">
                    ${status.index+1}.
                    ${address.contact}
                    ${address.addressDesc}
                    ${address.tel}<br/>
                </c:forEach>
            </p>
            <a href="javascript:void(0)" onclick="history.back(-1)">返回</a>
        </div>
         </div>
<%@ include file="common/publicBottom.jsp" %>
<script src="js/time.js"></script>

</body>

</html>
